package com.as.server.mapper;

import com.as.server.entity.Collection;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
* @author wuying
* @description 针对表【collection】的数据库操作Mapper
* @createDate 2022-12-04 16:46:16
* @Entity com.as.server.entity.Collection
*/
@Mapper
public interface CollectionMapper {

    int deleteByPrimaryKey(Long id);

    int insert(Collection record);

    int insertSelective(Collection record);

    Collection selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Collection record);

    int updateByPrimaryKey(Collection record);

    List<Collection> selectCollectionByUid(Long uid);

    /**
     *
     * @param uid
     * @param aid
     * @return
     */
    int delCollection(Long uid, Long aid);
}
